<div class="pageContent">
	<form method="post" action="<?php echo site_url('backend/category/edit')?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="56">
			<input type="hidden" name="id" value="<?php echo $id?>">
			<dl>
				<dt>分类名：</dt>
				<dd><input name="name" type="text" size="30" class="required" value="<?php echo $name?>"/></dd>
			</dl>
			<dl>
				<dt>静态图标：</dt>
				<dd>
					<input name="link_id" value="<?php echo $link_id?>" type="hidden">
					<input class="readonly" name="link_filename" value="<?php echo $link_filename?>" readonly="readonly" type="text"/>
					<a class="btnAttach" href="<?php echo site_url('backend/category/upload?type=1&id='.$id.'&album_id='.$link_id)?>" lookupGroup="link" width="560" height="300" title="附件">附件</a>
				</dd>
			</dl>
			<dl>
				<dt>活动图标：</dt>
				<dd>
					<input name="active_id" value="<?php echo $active_id?>" type="hidden">
					<input class="readonly" name="active_filename" value="<?php echo $active_filename?>" readonly="readonly" type="text"/>
					<a class="btnAttach" href="<?php echo site_url('backend/category/upload?type=2&id='.$id.'&album_id='.$active_id)?>" lookupGroup="active" width="560" height="300" title="附件">附件</a>
				</dd>
			</dl>
			<dl>
				<dt>banner图：</dt>
				<dd>
					<input name="banner_id" value="<?php echo $banner_id?>" type="hidden">
					<input class="readonly" name="banner_filename" value="<?php echo $banner_filename?>" readonly="readonly" type="text"/>
					<a class="btnAttach" href="<?php echo site_url('backend/category/upload?type=1&from=3&id='.$id.'&album_id='.$banner_id)?>" lookupGroup="banner" width="560" height="300" title="附件">附件</a>
				</dd>
			</dl>
			<dl>
				<dt>排序：</dt>
				<dd><input name="rank" type="text" size="30" value="0" class="required digits" value="<?php echo $rank?>"/></dd>
			</dl>
			<dl>
				<dt>所属：</dt>
				<dd><select name="parent" class="required combox">
					<option value="0" selected="selected">主类</option>
				</select></dd>
			</dl>
			<dl>
				<dt>类型：</dt>
				<dd><select name="type" class="required combox">
					<?php echo $this->html_helper->select(array('0'=>'普通', '1'=>'热销'), $type)?>
				</select></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
